#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void maopao(int* a, int sz)
{
	int i;
	for (i = 0; i < sz - 1; i++)
	{
		int j = 0;
		for (j = 0; j < sz - 1 - i; j++)
		{
			if (a[j] > a[j+1])
			{
				int t = a[j];
				a[j] = a[j+1];
				a[j+1] = t;
			}
		}
	}
}
int main()
{
	int i;
	int a[] = { 3,6,7,5,8,9,2,1,12,54,114514,0 };
	int sz = sizeof(a) / sizeof(a[0]);
	maopao(a, sz);
	for (i = 0; i < sz ; i++)
	{
		printf("%d ", a[i]);
	}
	return 0;
}










